package com.hellobike.haxing.modules.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hellobike.haxing.modules.order.entity.MonthRewardDetail;
import com.hellobike.haxing.modules.order.entity.OrderCoupon;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @Description: 月度达成奖励项设置
 * @Author: haxing-boot
 * @Date:   2020-01-08
 * @Version: V1.0
 */
public interface MonthRewardDetailMapper extends BaseMapper<MonthRewardDetail> {
    /**
     * 查询订单使用优惠券
     * @param monthRewardId
     * @return
     */
    @Update("update t_month_reward_detail set deleted = 1 where month_reward_id=#{monthRewardId}")
    int deleteByMonthRewardId(Long monthRewardId);

}
